const rules = {
  advertPlaceId: [
    {
      required: true,
      message: '请选择广告位置',
      trigger: 'change'
    }
  ],
  advertPic: [
    {
      required: true,
      message: '请上传广告图片',
      trigger: 'change'
    }
  ],
  pointPlace: [
    {
      required: true,
      message: '指向位置不能为空',
      trigger: 'change'
    }
  ],
  timeRule: [
    {
      required: true,
      message: '投放时间不能为空',
      trigger: 'change'
    }
  ],
  sort: [
    {
      required: true,
      message: '请输入排序位置',
      trigger: 'blur'
    },
    {
      pattern: /^[1-9]\d{0,3}$/,
      message: '请输入1-9999'
    }
  ],
  isShow: [
    {
      required: true,
      message: '是否启用不能为空',
      trigger: 'change'
    }
  ],
  windowsPlaces: [
    {
      required: true,
      message: '弹窗位置不能为空',
      trigger: 'change'
    }
  ],
  isFirstShow: [
    {
      required: true,
      message: '出现频次不能为空',
      trigger: 'change'
    }
  ]
}

export default rules
